package com.nami.store.dubbo;

import com.nami.store.api.service.RemoteGroupService;
import com.nami.store.api.response.group.GroupDTO;
import com.nami.store.biz.group.application.GrpAppService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@Slf4j
@RequiredArgsConstructor
@DubboService
public class RemoteGrpServiceImpl implements RemoteGroupService {

    private final GrpAppService groupService;

    @Override
    public GroupDTO getGroupInfo(String groupId) {
        return groupService.getGroup(groupId);
    }

    @Override
    public GroupDTO getGrpById(String appKey, String groupId) {
        return groupService.getGroup(appKey, groupId);
    }

}
